package com.hrcx.mystery.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.io.Serializable;

/**
 * <h1>开盒历史记录请求封装</h1>
 *
 * @author LinXiPeng
 * @className HistorySearchDto
 * @date 2021/12/21 10:32
 * Version 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "开盒历史记录请求对象")
public class HistorySearchDto implements Serializable {

    private static final long serialVersionUID = -760196297449401402L;

    /**
     * 记录状态
     */
    @ApiModelProperty(value = "记录状态 0：待提货 1：已发货 2：已完成 3：已合成 4：已回收 5: 寄售中")
    @Min(value = 0, message = "类型不能小于1")
    @Max(value = 5, message = "类型不能大于5")
    private Integer status;
}